package core.dao;

import commons.dao.GenericDao;
import core.model.UserEntity;

/**
 * Dao interface to work with User entity database operations
 * @author giandefi
 *
 */
public interface UserDao extends GenericDao<UserEntity, Long> {

    /**
     * Queries database for user name availability
     *
     * @param userName
     * @return true if available
     */
    boolean checkAvailable(String userName);
   
    /**
     * Queries user by username
     *
     * @param userName
     * @return User entity
     */
    UserEntity loadUserByUserName(String userName);
}
